900 |
How can I prevent a link to end to a specified bar
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .BeginUpdate .Columns.Add "Tasks" With .Chart .AllowLinkBars = True .LevelCount = 2 .PaneWidth(0) = 160 .FirstVisibleDate = #6/20/2005# End With With .Items h = .AddItem("Not-End-Linkable") .AddBar h,"Unknown",#6/21/2005#,#6/28/2005# .ItemBar(h,"",31) = False .AddBar .AddItem("Task 1"),"Task",#6/23/2005#,#6/27/2005#,"" .AddBar .AddItem("Task 2"),"Task",#6/23/2005#,#6/27/2005#,"" End With .EndUpdate End With End Function </SCRIPT> </BODY> |
899 |
How can I prevent a link to start from a specified bar
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .BeginUpdate .Columns.Add "Tasks" With .Chart .AllowLinkBars = True .LevelCount = 2 .PaneWidth(0) = 160 .FirstVisibleDate = #6/20/2005# End With With .Items h = .AddItem("Not-Start-Linkable") .AddBar h,"Unknown",#6/21/2005#,#6/28/2005# .ItemBar(h,"",30) = False .AddBar .AddItem("Task 1"),"Task",#6/23/2005#,#6/27/2005#,"" .AddBar .AddItem("Task 2"),"Task",#6/23/2005#,#6/27/2005#,"" End With .EndUpdate End With End Function </SCRIPT> </BODY> |
898 |
How can I prevent a specified bar to be linked
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .BeginUpdate .Columns.Add "Tasks" With .Chart .AllowLinkBars = True .LevelCount = 2 .PaneWidth(0) = 160 .FirstVisibleDate = #6/20/2005# End With With .Items h = .AddItem("Not-Linkable") .AddBar h,"Unknown",#6/21/2005#,#6/28/2005# .ItemBar(h,"",32) = False .AddBar .AddItem("Task 1"),"Task",#6/23/2005#,#6/27/2005#,"" .AddBar .AddItem("Task 2"),"Task",#6/23/2005#,#6/27/2005#,"" End With .EndUpdate End With End Function </SCRIPT> </BODY> |
897 |
How can I display in the chart's header only days where the week starts
|
896 |
Is there any automatically way to display and change the bar's duration in the columns section
|
895 |
How can I programatically move or resize a bar using spin or slider controls in the columns
|
894 |
I am trying to call the ItemBar(exBarStart) after curent ending point, and the bar is not updated. What I am doing wrong
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .BeginUpdate .Columns.Add "Tasks" With .Chart .PaneWidth(0) = 64 .FirstVisibleDate = #6/21/2005# .ShowEmptyBars = 1 End With With .Items h = .AddItem("Test") .AddBar h,"Task",#6/22/2005#,#6/26/2005#,"" .AddBar h,"Task",#6/27/2005#,.ItemBar(h,"",2) End With .EndUpdate End With End Function </SCRIPT> </BODY> |
893 |
How can change in the same time the starting and ending points of the bar
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .BeginUpdate .Columns.Add "Tasks" With .Chart .PaneWidth(0) = 64 .FirstVisibleDate = #6/21/2005# .ShowEmptyBars = 1 End With With .Items h = .AddItem("Test") .AddBar h,"Task",#6/22/2005#,#6/26/2005# End With With .Items h = .FirstVisibleItem .AddBar h,"Task",#6/27/2005#,#6/29/2005# End With .EndUpdate End With End Function </SCRIPT> </BODY> |
892 |
How can I control the exBarEffort property of the bar using slider controls
|
891 |
How can I determine if there is any Redo operation
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 With .Chart .AllowUndoRedo = True .LevelCount = 2 .FirstVisibleDate = #1/1/2001# End With .Columns.Add "Column" With .Items .AddBar .AddItem("Item 1"),"Task",#1/2/2001#,#1/4/2001# .AddBar .AddItem("Item 2"),"Task",#1/3/2001#,#1/7/2001# End With var_CanRedo = .Chart.CanRedo End With End Function </SCRIPT> </BODY> |
890 |
How can I determine if there is any Undo operation
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 With .Chart .AllowUndoRedo = True .LevelCount = 2 .FirstVisibleDate = #1/1/2001# End With .Columns.Add "Column" With .Items .AddBar .AddItem("Item 1"),"Task",#1/2/2001#,#1/4/2001# .AddBar .AddItem("Item 2"),"Task",#1/3/2001#,#1/7/2001# End With var_CanUndo = .Chart.CanUndo End With End Function </SCRIPT> </BODY> |
889 |
How can I turn on the Undo/Redo feature
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 With .Chart .AllowUndoRedo = True .LevelCount = 2 .FirstVisibleDate = #1/1/2001# End With .Columns.Add "Column" With .Items .AddBar .AddItem("Item 1"),"Task",#1/2/2001#,#1/4/2001# .AddBar .AddItem("Item 2"),"Task",#1/3/2001#,#1/7/2001# End With End With End Function </SCRIPT> </BODY> |
888 |
How can I disable resizing the histogram at runtime
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .OnResizeControl = 256 With .Chart .FirstVisibleDate = #1/1/2001# .HistogramVisible = True .HistogramHeight = 32 .Bars.Item("Task").HistogramPattern = 6 End With .Columns.Add "Column" With .Items .AddBar .AddItem("Item 1"),"Task",#1/2/2001#,#1/4/2001# .AddBar .AddItem("Item 2"),"Task",#1/3/2001#,#1/7/2001# End With End With End Function </SCRIPT> </BODY> |
887 |
How can I display automatically the start and end dates of the bars in the columns section
|
886 |
How can I enable Undo/Redo support
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .BeginUpdate .MarkSearchColumn = False .DrawGridLines = 1 With .Columns .Add "Tasks" With .Add("Start") .Def(18) = 1 .Editor.EditType = 7 .LevelKey = 1 End With With .Add("End") .Def(18) = 2 .Editor.EditType = 7 .LevelKey = 1 End With End With With .Chart .DrawGridLines = 1 .FirstVisibleDate = #9/20/2006# .AllowLinkBars = True .AllowCreateBar = 0 .LevelCount = 2 .PaneWidth(0) = 196 .AllowUndoRedo = True End With With .Items .AllowCellValueToItemBar = True .AddBar .AddItem("Task 1"),"Task",#9/21/2006#,#9/24/2006# .AddBar .AddItem("Task 2"),"Task",#9/22/2006#,#9/25/2006# .AddBar .AddItem("Task 3"),"Task",#9/23/2006#,#9/26/2006# End With .EndUpdate End With End Function </SCRIPT> </BODY> |
885 |
Is there any option to update the bar's properties once the cell's value is changed ( associate the cell with bar )
|
884 |
Is there any option to update the bar's properties once the cell's value is changed ( associate the column/cell with bars )
|
883 |
How can I group two bars so I can specify the range or the limit of the interval between them
|
882 |
How can I group my bars so I can resize the interval between them but still keep the lengths of them
|
881 |
Can I group my bars so they move together when a bar inside changes, but still preserving the length of the bars
|
880 |
How can I split the time scale, so a section displays days, while other displays weeks, and the other months
|
879 |
How can I define a bar that shows two colors, one up and one down, without using skin or EBN files
|
878 |
Does your control support RightToLeft property for RTL languages or right to left
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .BeginUpdate .ScrollBars = 15 .LinesAtRoot = -1 With .Columns.Add("P1") .Def(0) = True .PartialCheck = True End With With .Items h = .AddItem("Root") .InsertItem h,,"Child 1" .InsertItem h,,"Child 2" .ExpandItem(h) = True End With .RightToLeft = True .EndUpdate End With End Function </SCRIPT> </BODY> |
877 |
Is there any way to display the vertical scroll bar on the left side, as I want to align my data to the right
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .BeginUpdate .ScrollBars = 15 With .Columns .Add "C1" .Add "C2" .Add "C3" .Add "C4" .Add "C5" .Add "C6" .Add "C7" .Add "C8" End With .RightToLeft = True .EndUpdate End With End Function </SCRIPT> </BODY> |
876 |
Can I display the cell's check box after the text
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 With .Columns.Add("Column") .Def(0) = True .Def(34) = "caption,check" End With With .Items .CellHasCheckBox(.AddItem("Caption 1"),0) = True .CellHasCheckBox(.AddItem("Caption 2"),0) = True End With End With End Function </SCRIPT> </BODY> |
875 |
Can I change the order of the parts in the cell, as checkbox after the text, and so on
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Images "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" & _ "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" & _ "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _ "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=" .Columns.Add("Column").Def(34) = "caption,check,icon,icons,picture" With .Items h = .AddItem("Text") .CellImage(h,0) = 1 .CellHasCheckBox(h,0) = True End With End With End Function </SCRIPT> </BODY> |
874 |
Can I have an image displayed after the text. Can I get that effect without using HTML content
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Images "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" & _ "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" & _ "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _ "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=" .Columns.Add("Column").Def(34) = "caption,icon,check,icons,picture" With .Items h = .AddItem("Text") .CellImage(h,0) = 1 End With End With End Function </SCRIPT> </BODY> |
873 |
My problem is that I want to mark the cells from every second item in the gant with a other backgroundcolor
|
872 |
Is there any option to print the columns section on each page
|
871 |
How can I add a different non-working area for different items
|
870 |
How can I define different non-working units for different items
|
869 |
I want to define/highlight for specified dates as being non-working. Is this possible
|
868 |
Do you have any sample how can I programmatically magnify a single date, so can show the hours, while the rest of the chart displays days
|
867 |
How can I define my own/custom labels and subdivisions
|
866 |
I want to mark or highlight the last Friday of the month. Is there any option to do that
|
865 |
I use the SelectDate method but the dates are not being highligted. What can I do
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .BeginUpdate With .Chart .FirstVisibleDate = #1/1/2008# .MarkTodayColor = .BackColor .LevelCount = 2 .SelectLevel = 1 .SelectDate(#1/2/2008#) = True End With .EndUpdate End With End Function </SCRIPT> </BODY> |
864 |
Can I use ebn files to display the selected dates
|
863 |
Can I use ebn files to display the selected dates
|
862 |
How can I change the color for selected dates to be solid
|
861 |
How can I disable selecting dates when I click the chart's header
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Chart.AllowSelectDate = False End With End Function </SCRIPT> </BODY> |
860 |
Is there any option to specify which dates can be magnified or resized
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .BeginUpdate With .Chart .LevelCount = 2 .FirstVisibleDate = #1/1/2008# .AllowInsideZoom = True .ShowNonworkingDates = True .CondInsideZoom = "not(weekday(value) = 0 or weekday(value) = 6)" End With .EndUpdate End With End Function </SCRIPT> </BODY> |
859 |
How can I change the width for a specified date time unit
|
858 |
How can I disable the control's splitter so the user can't resize the list area
|
857 |
How can I disable the control's splitter so the user can't resize the chart area
|
856 |
How can I change the label for a specified unit
|
855 |
How can I bold the inside units
|
854 |
How can I change the scale unit when doing inside zoom ( the chart displays weeks, and we want week days )
|
853 |
How can I zoom or magnify the selected date to display the hours, from 8 to 8
|
852 |
How can I zoom or magnify the selected date to display the hours
|
851 |
How can I change the foreground color for a time unit
|
850 |
How can I change the background color for a time unit, in the chart area
|
849 |
How can I change the background color for a time unit, using EBN files
|
848 |
How can I change the background color for a time unit
|
847 |
How can I display the column using currency format and enlarge the font for certain values
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 With .Columns.Add("Currency") .Def(17) = 1 .FormatColumn = "len(value) ? ((0:=dbl(value)) < 10 ? '<fgcolor=808080><font ;7>' : '<b>') + currency(=:0)" End With With .Items .AddItem "1.23" .AddItem "2.34" .AddItem "9.94" .AddItem "11.94" .AddItem "1000" End With End With End Function </SCRIPT> </BODY> |
846 |
How can I highlight only parts of the cells
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 With .Columns.Add("") .Def(17) = 1 .FormatColumn = "value replace 'hil' with '<fgcolor=FF0000><b>hil</b></fgcolor>'" End With With .Items h = .AddItem("Root") .InsertItem h,,"Child 1" .InsertItem h,,"Child 2" .InsertItem h,,"Child 3" .ExpandItem(h) = True End With End With End Function </SCRIPT> </BODY> |
845 |
How can I get the number of occurrences of a specified string in the cell
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add "" With .Columns.Add("occurrences") .ComputedField = "lower(%0) count 'o'" .FormatColumn = "'contains ' + value + ' of \'o\' chars'" End With With .Items h = .AddItem("Root") .InsertItem h,,"Child 1 oooof the root" .InsertItem h,,"Child 2" .InsertItem h,,"Child 3" .ExpandItem(h) = True End With End With End Function </SCRIPT> </BODY> |
844 |
How can I display dates in my format
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 With .Columns.Add("Date") .Def(17) = 1 .FormatColumn = "'<b>' + year(0:=date(value)) + '</b><fgcolor=808080><font ;6> (' + month(=:0) + ' - ' + day(=:0) +')'" End With With .Items .AddItem #1/21/2001# .AddItem #2/22/2002# .AddItem #3/13/2003# .AddItem #4/24/2004# End With End With End Function </SCRIPT> </BODY> |
843 |
How can I display dates in short format
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add("Date").FormatColumn = "shortdate(value)" With .Items .AddItem #1/1/2001# .AddItem #2/2/2002# .AddItem #3/3/2003# .AddItem #4/4/2004# End With End With End Function </SCRIPT> </BODY> |
842 |
How can I display dates in long format
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add("Date").FormatColumn = "longdate(value)" With .Items .AddItem #1/1/2001# .AddItem #2/2/2002# .AddItem #3/3/2003# .AddItem #4/4/2004# End With End With End Function </SCRIPT> </BODY> |
841 |
How can I display only the right part of the cell
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add "" With .Columns.Add("Right") .ComputedField = "%0 right 2" .FormatColumn = "'""' + value + '""'" End With With .Items h = .AddItem("Root") .InsertItem h,,"Child 1" .InsertItem h,,"Child 2" .InsertItem h,,"SChild 3" .ExpandItem(h) = True End With End With End Function </SCRIPT> </BODY> |
840 |
How can I display only the left part of the cell
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add "" .Columns.Add("Left").ComputedField = "%0 left 2" With .Items h = .AddItem("Root") .InsertItem h,,"Child 1" .InsertItem h,,"Child 2" .InsertItem h,,"SChild 3" .ExpandItem(h) = True End With End With End Function </SCRIPT> </BODY> |
839 |
How can I display true or false instead 0 and -1
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add("Boolean").FormatColumn = "value != 0 ? 'true' : 'false'" With .Items .AddItem True .AddItem False .AddItem True .AddItem 0 .AddItem 1 End With End With End Function </SCRIPT> </BODY> |
838 |
Is there any option to print the columns section on each page
|
837 |
How do I print the control's content
|
836 |
How can I display icons or images instead numbers
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Images "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" & _ "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" & _ "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _ "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=" With .Columns.Add("Icons") .Def(17) = 1 .FormatColumn = "'The cell displays the icon <img>'+value+'</img> instead ' + value" End With With .Items .AddItem 1 .AddItem 2 .AddItem 3 End With End With End Function </SCRIPT> </BODY> |
835 |
How can I display the column using currency
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add("Currency").FormatColumn = "currency(dbl(value))" With .Items .AddItem "1.23" .AddItem "2.34" .AddItem "0" .AddItem 5 .AddItem "10000.99" End With End With End Function </SCRIPT> </BODY> |
834 |
How can I display the currency only for not empty cells
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add "Number" .Columns.Add("Currency").ComputedField = "len(%0) ? currency(dbl(%0)) : ''" With .Items .AddItem "1.23" .AddItem "2.34" .AddItem "0" .ItemBackColor(.AddItem()) = RGB(255,128,128) .AddItem "10000.99" End With End With End Function </SCRIPT> </BODY> |
833 |
Is there a function to display the number of days between two date including the number of hours
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add("Start").Width = 32 .Columns.Add "End" .Columns.Add("Duration").ComputedField = "((1:=int(0:= (date(%1)-date(%0)))) != 0 ? (=:1 + ' day(s)') : '') + (=:1 ? ' ' : '' ) + ((1:=int(0:=((=:0 - =:1 + 1/24/60/60/2)" & _ "*24))) != 0 ? =:1 + ' hour(s) ' : '' ) + ((1:=round((=:0 - =:1)*60)) != 0 ? =:1 + ' min(s)' : '')" With .Items h = .AddItem(#1/11/2001#) .CellValue(h,1) = #1/14/2001# h = .AddItem(#2/22/2002 0:00:00 PM#) .CellValue(h,1) = #3/14/2002 1:00:00 PM# h = .AddItem(#3/13/2003#) .CellValue(h,1) = #4/11/2003 11:00:00 AM# End With End With End Function </SCRIPT> </BODY> |
832 |
Is there a function to display the number of days between two date including the number of hours
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add "Start" .Columns.Add "End" .Columns.Add("Duration").ComputedField = """D "" + int(date(%1)-date(%0)) + "" H "" + round(24*(date(%1)-date(%0) - floor(date(%1)-date(%0))))" With .Items h = .AddItem(#1/11/2001#) .CellValue(h,1) = #1/14/2001 11:00:00 PM# h = .AddItem(#2/22/2002 0:00:00 PM#) .CellValue(h,1) = #3/14/2002 1:00:00 PM# h = .AddItem(#3/13/2003#) .CellValue(h,1) = #4/11/2003 11:00:00 AM# End With End With End Function </SCRIPT> </BODY> |
831 |
How can I display the number of days between two dates
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add "Start" .Columns.Add "End" .Columns.Add("Duration").ComputedField = "(date(%1)-date(%0)) + ' days'" With .Items h = .AddItem(#1/11/2001#) .CellValue(h,1) = #1/14/2001# h = .AddItem(#2/22/2002#) .CellValue(h,1) = #3/14/2002# h = .AddItem(#3/13/2003#) .CellValue(h,1) = #4/11/2003# End With End With End Function </SCRIPT> </BODY> |
830 |
How can I get second part of the date
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add "Date" .Columns.Add("Second").ComputedField = "sec(date(%0))" With .Items .AddItem #1/11/2001 10:10:00 AM# .AddItem #2/22/2002 11:01:22 AM# .AddItem #3/13/2003 0:23:01 PM# .AddItem #4/14/2004 1:11:59 PM# End With End With End Function </SCRIPT> </BODY> |
829 |
How can I get minute part of the date
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add "Date" .Columns.Add("Minute").ComputedField = "min(date(%0))" With .Items .AddItem #1/11/2001 10:10:00 AM# .AddItem #2/22/2002 11:01:00 AM# .AddItem #3/13/2003 0:23:00 PM# .AddItem #4/14/2004 1:11:00 PM# End With End With End Function </SCRIPT> </BODY> |
828 |
How can I check the hour part only so I know it was afternoon
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .ConditionalFormats.Add("hour(%0)>=12").Bold = True .Columns.Add "Date" .Columns.Add("Hour").ComputedField = "hour(%0)" With .Items .AddItem #1/11/2001 10:00:00 AM# .AddItem #2/22/2002 11:00:00 AM# .AddItem #3/13/2003 0:00:00 PM# .AddItem #4/14/2004 1:00:00 PM# End With End With End Function </SCRIPT> </BODY> |
827 |
What about a function to get the day in the week, or days since Sunday
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add "Date" .Columns.Add("WeekDay").ComputedField = "weekday(%0)" With .Items .AddItem #1/11/2001 10:00:00 AM# .AddItem #2/22/2002 11:00:00 AM# .AddItem #3/13/2003 0:00:00 PM# .AddItem #4/14/2004 1:00:00 PM# End With End With End Function </SCRIPT> </BODY> |
826 |
Is there any function to get the day of the year or number of days since January 1st
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add "Date" .Columns.Add("Day since January 1st").ComputedField = "yearday(%0)" With .Items .AddItem #1/11/2001 10:00:00 AM# .AddItem #2/22/2002 11:00:00 AM# .AddItem #3/13/2003 0:00:00 PM# .AddItem #4/14/2004 1:00:00 PM# End With End With End Function </SCRIPT> </BODY> |
825 |
How can I display only the day of the date
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add "Date" .Columns.Add("Day").ComputedField = "day(%0)" With .Items .AddItem #1/11/2001 10:00:00 AM# .AddItem #2/22/2002 11:00:00 AM# .AddItem #3/13/2003 0:00:00 PM# .AddItem #4/14/2004 1:00:00 PM# End With End With End Function </SCRIPT> </BODY> |
824 |
How can I display only the month of the date
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add "Date" .Columns.Add("Month").ComputedField = "month(%0)" With .Items .AddItem #1/1/2001 10:00:00 AM# .AddItem #2/2/2002 11:00:00 AM# .AddItem #3/3/2003 0:00:00 PM# .AddItem #4/4/2004 1:00:00 PM# End With End With End Function </SCRIPT> </BODY> |
823 |
How can I get only the year part from a date expression
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add "Date" .Columns.Add("Year").ComputedField = "year(%0)" With .Items .AddItem #1/1/2001 10:00:00 AM# .AddItem #2/2/2002 11:00:00 AM# .AddItem #3/3/2003 0:00:00 PM# .AddItem #4/4/2004 1:00:00 PM# End With End With End Function </SCRIPT> </BODY> |
822 |
Can I convert the expression to date
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add "Number" .Columns.Add("Date").ComputedField = "date(dbl(%0))" With .Items .AddItem "-1.98" .AddItem "30000.99" .AddItem "3561.23" .AddItem "1232.34" End With End With End Function </SCRIPT> </BODY> |
821 |
Can I convert the expression to a number, double or float
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add "Number" .Columns.Add("Number + 2").ComputedField = "dbl(%0)+2" With .Items .AddItem "-1.98" .AddItem "0.99" .AddItem "1.23" .AddItem "2.34" End With End With End Function </SCRIPT> </BODY> |
820 |
How can I display dates in long format
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add "Date" .Columns.Add("LongFormat").ComputedField = "longdate(%0)" With .Items .AddItem #1/1/2001 10:00:00 AM# .AddItem #2/2/2002 11:00:00 AM# .AddItem #3/3/2003 0:00:00 PM# .AddItem #4/4/2004 1:00:00 PM# End With End With End Function </SCRIPT> </BODY> |
819 |
How can I display dates in short format
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add "Date" .Columns.Add("ShortFormat").ComputedField = "shortdate(%0)" With .Items .AddItem #1/1/2001 10:00:00 AM# .AddItem #2/2/2002 11:00:00 AM# .AddItem #3/3/2003 0:00:00 PM# .AddItem #4/4/2004 1:00:00 PM# End With End With End Function </SCRIPT> </BODY> |
818 |
How can I display the time only of a date expression
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add "Date" .Columns.Add("Time").ComputedField = "'time is:' + time(date(%0))" With .Items .AddItem #1/1/2001 10:00:00 AM# .AddItem #2/2/2002 11:00:00 AM# .AddItem #3/3/2003 0:00:00 PM# .AddItem #4/4/2004 1:00:00 PM# End With End With End Function </SCRIPT> </BODY> |
817 |
Is there any function to display currencies, or money formatted as in the control panel
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add "Number" .Columns.Add("Currency").ComputedField = "currency(dbl(%0))" With .Items .AddItem 1.23 .AddItem 2.34 .AddItem 10000.99 End With End With End Function </SCRIPT> </BODY> |
816 |
How can I convert the expression to a string so I can look into the date string expression for month's name
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add "Number" .Columns.Add("Str").ComputedField = "str(%0) + ' AA'" With .Items .AddItem "-1.98" .AddItem "0.99" .AddItem "1.23" .AddItem "2.34" End With End With End Function </SCRIPT> </BODY> |
815 |
Can I display the absolute value or positive part of the number
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add "Number" .Columns.Add("Abs").ComputedField = "abs(%0)" With .Items .AddItem "-1.98" .AddItem "0.99" .AddItem "1.23" .AddItem "2.34" End With End With End Function </SCRIPT> </BODY> |
814 |
Is there any function to get largest number with no fraction part that is not greater than the value
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add "Number" .Columns.Add("Floor").ComputedField = "floor(%0)" With .Items .AddItem "-1.98" .AddItem "0.99" .AddItem "1.23" .AddItem "2.34" End With End With End Function </SCRIPT> </BODY> |
813 |
Is there any function to round the values base on the .5 value
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add "Number" .Columns.Add("Round").ComputedField = "round(%0)" With .Items .AddItem "-1.98" .AddItem "0.99" .AddItem "1.23" .AddItem "2.34" End With End With End Function </SCRIPT> </BODY> |
812 |
How can I get or display the integer part of the cell
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add "Number" .Columns.Add("Int").ComputedField = "int(%0)" With .Items .AddItem "-1.98" .AddItem "0.99" .AddItem "1.23" .AddItem "2.34" End With End With End Function </SCRIPT> </BODY> |
811 |
How can I display names as proper ( first leter of the word must be in uppercase, and the rest in lowercase )
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add("").FormatColumn = "proper(%0)" With .Items h = .AddItem("root") .InsertItem h,,"child child" .InsertItem h,,"child child" .InsertItem h,,"child child" .ExpandItem(h) = True End With End With End Function </SCRIPT> </BODY> |
810 |
Is there any option to display cells in uppercase
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add("").FormatColumn = "upper(%0)" With .Items h = .AddItem("Root") .InsertItem h,,"Child 1" .InsertItem h,,"Child 2" .InsertItem h,,"Chld 3" .ExpandItem(h) = True End With End With End Function </SCRIPT> </BODY> |
809 |
Is there any option to display cells in lowercase
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .Columns.Add("").FormatColumn = "lower(%0)" With .Items h = .AddItem("Root") .InsertItem h,,"Child 1" .InsertItem h,,"Child 2" .InsertItem h,,"Chld 3" .ExpandItem(h) = True End With End With End Function </SCRIPT> </BODY> |
808 |
How can I mark the cells that has a specified type, ie strings only
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .ConditionalFormats.Add("type(%0) = 8").ForeColor = RGB(255,0,0) .Columns.Add "" With .Items h = .AddItem("Root") .InsertItem h,,"Child 1" .InsertItem h,,2 .InsertItem h,,"Chld 3" .ExpandItem(h) = True End With End With End Function </SCRIPT> </BODY> |
807 |
How can I bold the items that contains data or those who displays empty strings
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .ConditionalFormats.Add("not len(%1)=0").Bold = True .Columns.Add "C1" .Columns.Add "C2" With .Items h = .AddItem("Root") .InsertItem h,,"Child 1" hC = .InsertItem(h,,"Child 2") .CellValue(hC,1) = "1" .InsertItem h,,"Child 3" .ExpandItem(h) = True End With End With End Function </SCRIPT> </BODY> |
806 |
Can I change the background color for items or cells that contains a specified string
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .ConditionalFormats.Add("%0 contains 'hi'").BackColor = RGB(255,0,0) .Columns.Add "" With .Items h = .AddItem("Root") .InsertItem h,,"Child 1" .InsertItem h,,"Child 2" .InsertItem h,,"Chld 3" .ExpandItem(h) = True End With End With End Function </SCRIPT> </BODY> |
805 |
Is there any option to change the fore color for cells or items that ends with a specified string
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .ConditionalFormats.Add("%0 endwith '22'").ForeColor = RGB(255,0,0) .Columns.Add "" With .Items h = .AddItem("Root") .InsertItem h,,"Child 1" .InsertItem h,,"Child 1.22" .InsertItem h,,"Child 2.22" .ExpandItem(h) = True End With End With End Function </SCRIPT> </BODY> |
804 |
How can I highlight the cells or items that starts with a specified string
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .ConditionalFormats.Add("%0 startwith 'C'").Underline = True .Columns.Add "" With .Items h = .AddItem("Root") .InsertItem h,,"Child 1" .InsertItem h,,"Child 2" .InsertItem h,,"SChild 3" .ExpandItem(h) = True End With End With End Function </SCRIPT> </BODY> |
803 |
How can I change the background color or the visual appearance using ebn for a particular column
<BODY onload="Init()"> <OBJECT CLASSID="clsid:CD481F4D-2D25-4759-803F-752C568F53B7" id="G2antt1"></OBJECT> <SCRIPT LANGUAGE="VBScript"> Function Init() With G2antt1 .VisualAppearance.Add 1,"c:\exontrol\images\normal.ebn" With .Columns .Add "Column 1" .Add("Column 2").Def(7) = 16777216 .Add("Column 3").Def(7) = 16777471 .Add "Column 4" End With End With End Function </SCRIPT> </BODY> |
802 |
How can I change the foreground color for a particular column
|
801 |
How can I change the background color for a particular column
|